import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("mall_comment",{schema:"nest-mall" } )
@Index("id_value",["valueId",])
export class MallComment {

    @PrimaryGeneratedColumn({
        type:"int", 
        name:"id"
        })
    id:number;
        

    @Column("tinyint",{ 
        nullable:false,
        default: () => "'0'",
        name:"type_id"
        })
    typeId:number;
        

    @Column("int",{ 
        nullable:true,
        default: () => "'0'",
        name:"value_id"
        })
    valueId:number | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:6550,
        name:"content"
        })
    content:string | null;
        

    @Column("bigint",{ 
        nullable:true,
        default: () => "'0'",
        name:"add_time"
        })
    addTime:string | null;
        

    @Column("tinyint",{ 
        nullable:true,
        default: () => "'0'",
        name:"status"
        })
    status:number | null;
        

    @Column("int",{ 
        nullable:true,
        default: () => "'0'",
        name:"user_id"
        })
    userId:number | null;
        
}
